<html>
<head><meta charset="utf-8"><title>Why this usage of associated const does not work? · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Why.20this.20usage.20of.20associated.20const.20does.20not.20work.3F.html">Why this usage of associated const does not work?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="175244403"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Why%20this%20usage%20of%20associated%20const%20does%20not%20work%3F/near/175244403" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Why.20this.20usage.20of.20associated.20const.20does.20not.20work.3F.html#175244403">(Sep 09 2019 at 14:06)</a>:</h4>
<p><a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=17eaf8429af8d6156470f725658975a4" target="_blank" title="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=17eaf8429af8d6156470f725658975a4">https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=17eaf8429af8d6156470f725658975a4</a></p>



<a name="175244404"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Why%20this%20usage%20of%20associated%20const%20does%20not%20work%3F/near/175244404" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Why.20this.20usage.20of.20associated.20const.20does.20not.20work.3F.html#175244404">(Sep 09 2019 at 14:06)</a>:</h4>
<p>the error message is quite strange</p>



<a name="175244557"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Why%20this%20usage%20of%20associated%20const%20does%20not%20work%3F/near/175244557" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> centril <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Why.20this.20usage.20of.20associated.20const.20does.20not.20work.3F.html#175244557">(Sep 09 2019 at 14:07)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/issues/43408" target="_blank" title="https://github.com/rust-lang/rust/issues/43408">https://github.com/rust-lang/rust/issues/43408</a></p>



<a name="175258298"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Why%20this%20usage%20of%20associated%20const%20does%20not%20work%3F/near/175258298" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Why.20this.20usage.20of.20associated.20const.20does.20not.20work.3F.html#175258298">(Sep 09 2019 at 16:27)</a>:</h4>
<p>Thank you for the pointer :)</p>



<a name="175311283"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Why%20this%20usage%20of%20associated%20const%20does%20not%20work%3F/near/175311283" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Why.20this.20usage.20of.20associated.20const.20does.20not.20work.3F.html#175311283">(Sep 10 2019 at 06:51)</a>:</h4>
<p>I thought the issue was lazy normalization</p>



<a name="175311489"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Why%20this%20usage%20of%20associated%20const%20does%20not%20work%3F/near/175311489" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Why.20this.20usage.20of.20associated.20const.20does.20not.20work.3F.html#175311489">(Sep 10 2019 at 06:56)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/issues/60471" target="_blank" title="https://github.com/rust-lang/rust/issues/60471">https://github.com/rust-lang/rust/issues/60471</a></p>



<a name="175312464"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Why%20this%20usage%20of%20associated%20const%20does%20not%20work%3F/near/175312464" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Why.20this.20usage.20of.20associated.20const.20does.20not.20work.3F.html#175312464">(Sep 10 2019 at 07:18)</a>:</h4>
<p>are both correlated to "we need Chalk in" ? :)</p>



<a name="175312513"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Why%20this%20usage%20of%20associated%20const%20does%20not%20work%3F/near/175312513" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Luca Barbato <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Why.20this.20usage.20of.20associated.20const.20does.20not.20work.3F.html#175312513">(Sep 10 2019 at 07:18)</a>:</h4>
<p>anyway once that is solved I would squeeze some additional performance out rav1e ^^</p>



<a name="175467971"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/Why%20this%20usage%20of%20associated%20const%20does%20not%20work%3F/near/175467971" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/Why.20this.20usage.20of.20associated.20const.20does.20not.20work.3F.html#175467971">(Sep 11 2019 at 19:36)</a>:</h4>
<p>Niko might be able to give you a timeline, IIRC there was some progress made towards it recently, but it has been quite a long lived issue</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>